package com.hm.jiaowuxitong.service;

import com.hm.jiaowuxitong.dao.ITeacherDao;
import com.hm.jiaowuxitong.dao.TeacherDaoImp;

import java.util.List;
import java.util.Map;

public class TeacherServiceImp implements ITeacherService {
    ITeacherDao dao=new TeacherDaoImp();
    @Override
    public int addTeacher(Map<String, Object> oMap) {
        return dao.insertTeacher(oMap);
    }

    @Override
    public List<Map<String, Object>> getTeachers() {
        return dao.selectTeacher();
    }
    @Override
    public List<Map<String, Object>> HgetUser(String id) {
        return dao.HselectTeachers(id);
    }

    @Override
    public int HaddTeacher(Map<String, Object> oMap) {
        return dao.HinsertTeacher(oMap);
    }

    @Override
    public List<Map<String, Object>> getTeachers1(String id) {
        return dao.selectTeacher1(id);
    }

    @Override
    public int ChangeTeacherPassword(Map<String, Object> oMap) {
        return dao.ChangeTeacherPassword(oMap);
    }

}
